<!--#include file="inc/conn.asp" -->
<!--#include file="inc/Function.asp" -->
<!--#include file="inc/pageClass.asp"-->
<%
CheckAdmin()
If request("Action") = "Delqq" Then
Id = Trim(checkstr(request("Id")))
set rs=conn_c.execute("Delete  from USER_POSTBOX where post_no="&Id)
End If

txtSearch = Trim(checkstr(request("txtSearch")))

If txtSearch<>""  Then
	sqlstr =  " and user_id like '%"&txtSearch&"%' or Char_Name like '%"&txtSearch&"%' or admin like '%"&txtSearch&"%' or ip like '%"&txtSearch&"%' or USER_POSTBOX like '%"&txtSearch&"%'"
End If

Select Case request("Logtype")
Case 1 
  sql="select *  from USER_POSTBOX where character_no='E24080630000000032'  "&sqlstr&" order by post_no desc"
	strtitle="用户日志"
Case 2 
  sql="select *  from USER_POSTBOX where character_no='E24080630000000032'  "&sqlstr&" order by post_no desc"
  	strtitle="角色日志"
Case 3 
  sql="select *  from USER_POSTBOX where character_no='E24080630000000032'  "&sqlstr&" order by post_no desc"
  	strtitle="装备日志"
Case 4 
  sql="select *  from USER_POSTBOX where character_no='E24080630000000032'  "&sqlstr&" order by post_no desc"
  	strtitle="交易日志"
Case else
  sql="select *  from USER_POSTBOX  where character_no='E24080630000000032'    "&sqlstr&" order by post_no desc"
  	strtitle="所有日志"
End Select 

'Response.write sql
  Set Rs = Server.CreateObject("ADODB.Recordset")
  Rs.Open sql,Conn_c,1,1
  Set page = New PageClass
    page.rs=Rs					'直接传递rs对象，传递成功后会自动关闭。如需要开启，请注释掉分页类的第87行val.Close。
    page.PageSize=Mypagesize					'分页大小
    page.setCount=-1					'可选。设置数据总数。0：使用RecordCount，-1：使用Count（默认），其他正数：指定的数据总数。
    page.PageID="p"					'Request.QueryString中分页参数字符串
strtitle=ServerName&"-商品管理"
Call  head(strtitle)
If browser()="pc" Then Call  LeftMenu()
%>
  <!-- 右侧主体开始 -->
  <div class="page-content">
<%Call  mnav()%>	
<div class="weadmin-body">



 <div class="layui-card">
<div class="layui-card-body">
<table width="99%" cellpadding="2" cellspacing="0">
  <tr>
    <td width="50%">
<form class="layui-form layui-col-space5" action="Log_List.asp" method="get">
                                <div class="layui-inline layui-show-xs-block"     style="1  font-size: 12px;">
                                    <input type="text" name="txtSearch"  placeholder="请输入关键字" autocomplete="off" class="layui-input">
                                </div>
								<div class="layui-inline layui-show-xs-block"  style="WIDTH: 120px">
			 <select name="SearchType" id="SearchType" >
              <option value="1">用户名</option>
              <option value="2">商品名称</option>
            </select></div>
								<div class="layui-inline layui-show-xs-block">
								<input type="checkbox" name="SearchType" title="精确" value="1">

                                    <button class="layui-btn layui-btn-normal layui-btn-sm"  lay-submit="" lay-filter="sreach"><i class="layui-icon">&#xe615;</i>搜索</button>
                                </div>
                            </form>
		</td>
    <td>
	<div style="float: right;">
<a href="Log_List.asp"><button type="button" class="layui-btn layui-btn-primary layui-btn-sm">所有用户</button></a>  &nbsp;
					   <a href="Log_List.asp?Logtype=1"><button type="button" class="layui-btn layui-btn-sm">管理员</button></a> &nbsp;
						<a href="Log_List.asp?Logtype=2"><button type="button" class="layui-btn layui-btn-normal layui-btn-sm">用户</button> </a> &nbsp;
                        </div>
	</td>
  </tr>
</table>

                        </div>
                    </div>
					
					
					
					



 <div class="layui-card-body layui-table-body layui-table-main" style="margin-top:-13px">
                            <table class="layui-table layui-form">
                                <thead>
                                  <tr>
								 <!-- <th style="min-width: 15px;    max-width: 20px;"> <input type="checkbox" name="like1[read]" lay-skin="primary"></th>-->
                                    <th style="width: 140px;">卖家</th>
                                    <th style="width: 170px;">标题</th>
                                    <th style="width: 190px;">物品名称</th>
                                    <th style="width: 35px;">数量</th>
                                    <th style="width: 160px;">时间</th>
                                    <!--<th>IP地址</th>-->
                                    <th style="width: 35px;">售价</th>
                                    <th style="width: 60px;height:35px">操作</th>
									</tr>
                                </thead>
                                <tbody>
								       <%
									  If page.eof Or page.bof Then 
									 response.write "<TR><th>没有找到任何记录...</th></TR>"
									 Else
										
									 Do While Not page.EOF
									 %>
                                  <tr>
									<!--<th style="min-width: 5px;    max-width: 10px;"><input type="checkbox" name="like1[game]" lay-skin="primary" ></th>-->
									  <th><%=page("from_char_nm")%></a></th>
                                    <th><a  href="Shop_Edit.asp?post_no=<%=page("post_no")%>"><%=page("post_title")%></th>
									<%
		  SET RS3 = conn_i.Execute("select itemname,itemid from Item where itemid="&page("Windex")&"")
		   If rs3.eof Or rs3.bof Then 
		  itemname="未知"
		  Else
		  itemname=rs3(0)
		  End If 
		   rs3.close
		  Set rs3=Nothing

byHeader=page("byHeader")
Hexinfo=ShowHex(page("info"))


		  %>
		  
		   
                                    <th title=""><%=page("wIndex")%>-<%=itemname%></th>
                                    <th><%if isChkInteger(Hexnumber(Hexinfo)) then response.write left(Hexnumber(Hexinfo),5) else response.write "1"%></th>
									 <th>
									<%
									   if page("ipt_time")<>"" then 
										  datetime=Replace(page("ipt_time"),"2024/","24-")
										  datetime=Replace(datetime,"2025/","25-")
										  datetime=Replace(datetime,"2026/","26-")
										  datetime=Replace(datetime,"2023/","23-")
										  datetime=Replace(datetime,"/","-")
										end If
									response.write datetime
									  %></th>
                                    <th><%=page("dil_tag")%></th>
                                    <th><a  onclick= "member_kick(this,'<%=page("post_no")%>')"href="javascript:;"><button type="button" class="layui-btn layui-btn-xs ">删除</button></a>&nbsp;
</th>
                                    								
                                  </tr>
                                                                
<%
   page.MoveNext
	Loop
	End If 
		 %>
                                </tbody>
                            </table>
                        </div>


								<div class="page">
								<%
								If browser()="pc" Then
									Response.write page.Control(10,"{Ctrl} {State}")
								Else
									Response.write page.Control(5,"{Ctrl} {State}")
								End If
								%>
							</div>


		</div>
  </div>
	<%Call  footer%>
</body>
</html>